<template>  
    <view>
		<web-view v-if="show" :src="url" ></web-view>
	</view>
</template>  

<script>  
	import common from '../../common/common.js';
    export default {  
       data(){
		   return{
			   url: '',
			   uid: '',
			   show: false,
		   }
	   },
	   onShow(){
		   // 如果不存在uid 或者和全局的不相等
		    if ( this.userID.id == ''  || this.userID.id!=this.uid){
				this.uid = this.userID.id
				if (this.uid != ''){
					let a = Date.now();
					this.url=this.baseUrl+'upload_file?userID='+this.uid+"&time="+a;
					this.show=true;
				}else{
					this.show=false;
					uni.showToast({
						title:'未登录',
						duration: 1000
					})
				}
					
			}
			
	   }
    }  
</script>  

<style>  
web-view{
	height: 700rpx;
	overflow:hidden;
}
</style>